export const BIT_TYPE = 3
export const TYPE_FREE = 0
export const TYPE_1_1 = 1
export const TYPE_1_2 = 2
export const TYPE_2_1 = 3
export const TYPE_2_2 = 4

export const T_ZHAO = 0
export const T_MA = 1
export const T_ZHANG = 2
export const T_HUANG = 3
export const T_BING1 = 4
export const T_BING2 = 5
export const T_BING3 = 6
export const T_BING4 = 7
export const T_GUAN = 8
export const T_CAO = 9
export const T_FREE1 = 10
export const T_FREE2 = 11

export const BIT_COL = 2
export const BIT_ROW = 3
export const UP = 0
export const RIGHT = 1
export const DOWN = 2
export const LEFT = 3
export const ROW_NUM = 5
export const COL_NUM = 4

export const BIT_SUM = 12 * (BIT_COL + BIT_ROW)
export const CHESS_LIST = [T_ZHAO, T_MA, T_ZHANG, T_HUANG, T_BING1, T_BING2, T_BING3, T_BING4, T_GUAN, T_CAO]
export const ALL_LIST = [T_ZHAO, T_MA, T_ZHANG, T_HUANG, T_BING1, T_BING2, T_BING3, T_BING4, T_GUAN, T_CAO, T_FREE1, T_FREE2]

export const CHESS_MAP = new Map()
CHESS_MAP.set(T_ZHAO, "赵云")
CHESS_MAP.set(T_MA, "马超")
CHESS_MAP.set(T_ZHANG, "张飞")
CHESS_MAP.set(T_HUANG, "黄忠")
CHESS_MAP.set(T_BING1, "兵1")
CHESS_MAP.set(T_BING2, "兵2")
CHESS_MAP.set(T_BING3, "兵3")
CHESS_MAP.set(T_BING4,"兵4")
CHESS_MAP.set(T_GUAN ,"关羽")
CHESS_MAP.set(T_CAO, "曹操")
CHESS_MAP.set(T_FREE1, "")
CHESS_MAP.set(T_FREE2, "")

export const D_MAP = new Map()
D_MAP.set(UP, "上")
D_MAP.set(RIGHT, "右")
D_MAP.set(DOWN, "下")
D_MAP.set(LEFT, "左")